<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.fick.hibernate.dao.ChannelDAO"%>
<%@ page import="com.fick.hibernate.model.Channel" %>
<%@ page import="com.fick.hibernate.model.News" %>
<%@ page import="com.fick.hibernate.dao.NewsDAO" %>
<%@page import="java.text.SimpleDateFormat"%>
<%@ page import="com.fick.hibernate.dao.LinkDAO" %>
<%@ page import="com.fick.hibernate.model.Link" %>
<%@ page import="java.text.SimpleDateFormat" %>
<%@ page import="com.fick.util.Pager" %>
<%@ page import="java.net.URLEncoder" %>
<%@page import="com.fick.hibernate.dao.BaseHibernateDAO"%>
<%@page import="com.fick.hibernate.model.IsGray"%>
<%@ taglib uri="http://www.fick.com/fick" prefix="fick"%>


<script>
 	function  checkform(){
   		if(document.form1.key.value=="")
   		{
   			alert("请输入要检索的关键字");
   			return false;
   		}
   	}
</script>  
<!-- hxgaj -->
<table width="1003" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr>
    <td height="168" align="center" valign="top">
     <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="1002" height="168">
      <param name="movie" value="images/top.swf" />
      <param name="quality" value="high" />
	  <param name="wmode" value="transparent">
      <embed src="images/top.swf" type="application/x-shockwave-flash" width="1002" height="168"></embed>
    </object>
    </td>
  </tr>
  <tr>
    <td height="35" align="center" valign="middle" background="images/menu_bj.gif">
    <table border="0" cellspacing="0" cellpadding="0">
    <tr>
        <td class="menu1 index_menu1"><a href="index.jsp" target="_blank">首 页</a></td>
        <%
        	ChannelDAO channelDAO=new ChannelDAO();
        	List list=channelDAO.findPageBySql(Channel.class,1,14,"where isShow='0' order by showOrder");
        	if(list!=null && list.size()>0)
        	{
        		for(int i=0;i<list.size();i++)
        		{
        			Channel channel=(Channel)list.get(i);
        			String bz="?";
        			if(channel.getUrl().indexOf("?")!=-1)
        			{bz="&";}
        			%>
						<td class="menu_jg"></td>
						<td class="menu1 index_menu1"><a href="<%=channel.getUrl()+bz+"channelid="+channel.getChannelId() %>" target="_blank"><%=channel.getName()%></a></td>
					<%
        		}
        	}
        %>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="33" align="center" valign="middle" background="images/menu_x.gif">
    <%
    List notelist=new NewsDAO().findPageBySql(News.class,1,123," where channelid.channelId=200 and isAss=1 order by addDate desc");
	News newsnote = new News();
	
     %>
    <table width="970" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="30" align="center" valign="middle"><img src="images/lab.gif" width="25" height="25" /></td>
        <td width="400" height="32" align="left" valign="middle">
        <marquee id='notemarquee' onmouseover='this.stop()' onmouseout='this.start()' width='380'>
        <%
        if(notelist!=null && notelist.size()>0)
	{
        	int n = 1;
	for(int i = 0 ; i < notelist.size() ; i ++ ){
			newsnote=(News)notelist.get(i);
			%>
			<a href="info.jsp?channelid=200&newsid=<%=newsnote.getNewId() %>" target="_blank">
        <%=n %>.&nbsp;<%=newsnote.getTitle()!=null?newsnote.getTitle():"" %>
        </a>&nbsp;&nbsp;&nbsp;&nbsp;
			<%
			n++;
	}}
	 %>        
        </marquee>
        </td>
        <td width="118" height="32" align="center" valign="middle">
        <a href="http://xt.ays.en/dsdh.asp" target="_blank">
        <img src="images/dsdhhy_icon.gif" width="112" height="21" /></a></td>
        <td height="32" align="right" valign="middle">
        <form action="searchList.jsp" method="post" name="form1" onsubmit="return checkform()">
        <table border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="290" height="28" align="center" valign="middle">
              <select name="type">
                  <option value="title">-信息标题-</option>
                  <option value="content">-关键字-</option>
              </select>
              <input name="key" id="key" type="text" class="so_box">
              </td>
              <td width="65" height="28" align="center" valign="middle">
              <input type="image" src="images/so_an.gif" />
              
              </td>
            </tr>
        </table>
        </form>
        </td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="8"></td>
  </tr>
</table>
<!-- hxgaj -->
